package br.senai.service;

import java.sql.SQLException;
import java.util.List;

import br.senai.dao.ProfessorDAO;
import br.senai.entity.Professor;

public class ProfessorService {

	ProfessorDAO pd = new ProfessorDAO();

	public void addProfessor(Professor professor) {

	}

	public List<Professor> listarProfessor() {
		return pd.listarProfessor();
	}

	public void adicionarProfessor(Professor professor) {
		pd.adicionarProfessor(professor);
	}

	public void editarProfessor(Professor professor) {
		pd.editarProfessor(professor);
	}

	public void removerProfessor(Long id) {
		pd.removerProfessor(id);
	}

	public Professor buscaProfessor(Long id) throws SQLException {
		return pd.buscaProfessor(id);
	}
}
